package com.bbzn.device.client.dao.iotcard;

import com.bbzn.device.client.dataobject.IotCard;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface IotCardMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(IotCard record);

    int insertOrUpdate(IotCard record);

    int insertOrUpdateSelective(IotCard record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(IotCard record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    IotCard selectByPrimaryKey(Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(IotCard record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(IotCard record);

    List<IotCard> findByAll(IotCard iotCard);

    IotCard findOneByCardNum(@Param("cardNum") String cardNum);

    int updateBatch(List<IotCard> list);

    int updateBatchSelective(List<IotCard> list);

    int batchInsert(@Param("list") List<IotCard> list);

    int updateImeiByIccid(@Param("iccid") String iccid, @Param("imei") String imei);

    int updateByIccidSelective(IotCard record);
}